Understanding the Impact of Collection Contracts on Design

نویسندگان

  • Stephen Nelson
  • David J. Pearce
  • James Noble
چکیده

Java provides a specification for a user-defined general purpose equivalence operator for objects, but collections such as Set have more stringent requirements. This inconsistency breaks polymorphism: programmers must take care to follow Set’s contract rather than the more general Object contract if their object could enter a Set. We have dynamically profiled 30 Java applications to better understand the way programmers design their objects, to determine whether they program with collections in mind. Our results indicate that objects which enter collections behave very differently to objects which do not. Our findings should help developers understand the impact of design choices they make, and guide future language designers when adding support for collections and/or equality.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Impact of EU’s Competition Laws on the Long-Term Gas Contracts

Competion laws follow varions goals including economic targets such as increase of economic efficiency and consumers' welfare. This branch of law has resisted against agreements and contracts which endanger the consumers' or public welfare and has tried to prevent such contracts and processes. European Union is among the greatest consumers and importer of energy in the world. The most part of t...

متن کامل

Evaluating the Impact of Economic Components of IPC and PSC Contracts on Cumulative Production of Oil Fields: A Case Study of Foroozan Oil Field

Iran's new petroleum contract, dubbed as IPC, is a new generation of oil service contracts.The most significant flaw observed in various contracts is that cumulative profits and cumulative production do not necessarily follow the same direction, a kind of incompatibility arises between the interests of governments and contractors. In this research, using stochastic dynamic programming approach,...

متن کامل

Conclusion of the collateral contracts based on the cause of debt

Collateral contracts which are concluded to guarantee and facilitate the collection of debts, as subordinate contracts, are always based on a basic relationship and debt. The Conclusion of the collateral contracts, including transition and guaranteed collateral contract, about a debt that has been fully formed and proven to be on the debtor's obligation, undoubtedly is correct and valid. About ...

متن کامل

Impact of Training through Infographic on Ethical Reasoning and Critical Thinking

Background: Ethical reasoning and critical thinking have an effective role in adapting to the environmental and educational conditions in students. Accordingly, identifying the factors affecting them is essential. By understanding this important issue, this study aims to investigate impact of education through infographic on ethical reasoning and critical thinking in heavenly gift lesson. Meth...

متن کامل

Developing a framework for studying and evaluating the types of psychological contracts in the context of relationship marketing

Nowadays, belief in the criteria and conditions of interactions with an organization to promote customer relationships is somehow tied to the organizational performance, and its final goal is of great importance. In the literature on organizational behavior, this belief is defined as the “psychological contract”. The intention of this mixed research is to identify and discover the contents of p...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010